package com.jicheng.entity.task.template;

import com.alibaba.druid.sql.visitor.functions.Char;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: TemplateMap
 * @Description: TODO
 * @author: khz
 * @date: 2020年09月04日 15:49
 */
@Table(name = "tb_template")
@Data
public class TemplateMap implements Serializable {
    @Id
    private String id;
    /**
     * 终端id
     */
    @Column(name = "app_id")
    private String appId;
    /**
     * 终端id
     */
    @Column(name = "app_user")
    private String appUser;
    /**
     * 模板名称
     */
    @Column(name = "name")
    private String name;
    /**
     * 模板类型
     */
    @Column(name = "type")
    private int type;
    /**
     * 模板属性
     */
    @Column(name = "attribute")
    private char attribute;
    /**
     * 创建时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 填表单位
     */
    @Column(name = "unit")
    private String unit;
    /**
     * 统计月份
     */
    @Column(name = "month")
    private String month;
    /**
     * 任务id
     */
    @Column(name = "task_id")
    private String taskId;


    /**
     * 可见列数
     */
    @Column(name = "row_num")
    private int rowNum;

    /**
     * 模板图片
     */
    @Column(name = "img_path")
    private String imgPath;
}
